<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>属性绑定</title>
		<script src="../js/vue.js"></script>
	</head>
	<body>
		<div id="app">
			<form action="https://www.baidu.com">
				<div>
					<input type="text" placeholder="用户名" value="name" v-model="name"/><br>
					性别<input type="radio" value="男" name="sex" v-model="sex"/>男
					<input type="radio" value="女"name="sex" v-model="sex"/>女<br>
					<input type="submit" value="提交" @click.prevent="formbtn()"/>
				</div>
			</form>
			
		</div>
		<script>
		const app = new Vue({
			el:"#app",
			data:{
				name:'',
				sex:'',
				hobby:[]
			},
			methods:{
				formbtn(){
					alert(100)
				}
			}
		})
		</script>
	</body>
</html>
